package com.yin.dao;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;

import com.config.FeignConfig;
import com.yin.entity.UserEntity;
import com.yin.fallback.UserFallBack;

import feign.Param;
import feign.RequestLine;

/**
*@author LSY
*Time: 2019年1月10日下午2:01:10
*
*
*/
@FeignClient(name = "user-service",fallback = UserFallBack.class, configuration = FeignConfig.class)
public interface UserRepository {


	//@GetMapping(value = "/user/{id}")
	@RequestLine("GET /user/{id}")
	UserEntity findUserById(@Param("id") Long id);
}
